import request from '@/utils/request'

export function getMenuList(params) {
  return request({
    url: '/music/menu',
    method: 'get',
    params
  })
}

export function updateMenu(data) {
  return request({
    url: '/music/menu',
    method: 'put',
    data
  })
}

export function deleteMenus(ids) {
  return request({
    url: '/music/menu/' + ids,
    method: 'delete',
  })
}

export function addMenu(data) {
  return request({
    url: '/music/menu',
    method: 'post',
    data
  })
}

export function getMenuSongsList(params) {
  return request({
    url: '/music/menu/detail',
    method: 'get',
    params
  })
}

export function addMenuSongs(songIds, params) {
  return request({
    url: '/music/menu/detail/' + songIds,
    method: 'post',
    params: {
      menuId: params
    }
  })
}

export function deleteMenuSongs(ids, params) {
  return request({
    url: '/music/menu/detail/' + ids,
    method: 'delete',
    params: {
      menuId: params
    }
  })
}
